Installation
npm install --save @types/pluralize
Summary
This package contains type definitions for pluralize (https://www.npmjs.com/package/pluralize).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pluralize.
declare function pluralize(word: string, count?: number, inclusive?: boolean): string;
declare namespace pluralize {
function plural(word: string): string;
function singular(word: string): string;
function addPluralRule(rule: string | RegExp, replacement: string): void;
function addSingularRule(rule: string | RegExp, replacement: string): void;
function addIrregularRule(single: string, plural: string): void;
function addUncountableRule(word: string | RegExp): void;
function isPlural(word: string): boolean;
function isSingular(word: string): boolean;
}
export = pluralize;
export as namespace pluralize;
Additional Details
- Last updated: Sun, 24 Sep 2023 06:37:28 GMT
- Dependencies: none
- Global values:
pluralize
Credits
These definitions were written by Syu Kato, and Karol Majewski.